<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of beneficiary
 *
 * @author 250-1-405
 */
class Poll extends AppModel {

    //put your code here
    var $name = "Poll";
    var $actsAs = array('Logable' => array(
        'userModel' => 'User',
        'userKey' => 'user_id',
        'change' => 'full', // options are 'list' or 'full'
        'description_ids' => TRUE // options are TRUE or FALSE
    ));
    var $hasMany = array(
        'WaterPoll' => array(
            'className' => 'WaterPoll'
            ),
        'ProductiveVocation'=>array(
            'classname'=>'ProductiveVocation'
        ),
         'PopulationPoll' => array(
            'className' => 'PopulationPoll'
            ),
        'Service' => array(
            'className' => 'Service'
            ),
        'AgriculturalActivity' => array(
            'className' => 'AgriculturalActivity'
            ),
        'Infrastructure' => array(
            'className' => 'Infrastructure'
            ),
        'Improvement' => array(
            'className' => 'Improvement'
            )
        
        );
    
    var $belongsTo = array(
        'Proyect' => array(
            'model' => 'Proyect'
        ),
        'City' => array(
            'model' => 'City'
        ),
        'User' => array(
            'model' => 'User'
        )
    );
    

}

?>
